package blazingbubble.lobby.command.net;

import spark.network.Sender;
import spark.network.NetworkConnection;
import blazingbubble.command.NetworkCommand;
import blazingbubble.lobby.command.LogoutCommand;

public class NetLogoutCommand extends LogoutCommand {
	private NetworkCommand networkCommand;
	public NetLogoutCommand(Sender sender, NetworkConnection serverConnection) {
		networkCommand = new NetworkCommand(sender, serverConnection);
	}

	@Override
	public void logout() {
		moltencore.network.protocol.Logout packet = new moltencore.network.protocol.Logout();
		networkCommand.send(packet);
	}
}
